package com.zm.demo.shoppingmall.order.dao;

import com.zm.demo.shoppingmall.order.model.TOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TOrderMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(TOrder record);

    int insertSelective(TOrder record);

    TOrder selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(TOrder record);

    int updateByPrimaryKey(TOrder record);

    TOrder getOrderByOrderNo(@Param("orderNo") String orderNo);

    List<TOrder> getOrderByUserId(@Param("userId") int userId);

    List<TOrder> getOrderByProductNo(@Param("productNo") String productNo);
}